package com.g3.zoosite.controller;


import com.g3.zoosite.model.DwPlaceScenery;
import com.g3.zoosite.model.DwScienceUniversal;
import com.g3.zoosite.service.IDwScienceUniversalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 科普活动信息表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2021-09-28
 */
@Api(tags = "科普活动信息接口")
@Slf4j  //日志打印
@RestController
@RequestMapping("/zoosite/dwScienceUniversal")
public class DwScienceUniversalController {

    @Autowired
    private IDwScienceUniversalService iDwScienceUniversalService;

    /**
     * 查询全部科普活动信息
     * @return
     */
    @GetMapping
    @ApiOperation("查询全部科普活动信息")
    public List<DwScienceUniversal> getList(){
        log.info("-------查询全部-------");
        List<DwScienceUniversal> list = iDwScienceUniversalService.list();
        return list;
    }

}
